package com.example.springbootsecurity.service.impl;

import com.example.springbootsecurity.entity.ShiroRole;
import com.example.springbootsecurity.mapper.ShiroRoleMapper;
import com.example.springbootsecurity.service.ShiroRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author vicente
 * @since 2022-01-11
 */
@Service
public class ShiroRoleServiceImpl extends ServiceImpl<ShiroRoleMapper, ShiroRole> implements ShiroRoleService {

    @Autowired
    private ShiroRoleMapper roleMapper;

    @Override
    public List<ShiroRole> getUserRole(String userName) {
        List<ShiroRole> roleList = roleMapper.findRoleByUserName(userName);
        return roleList;
    }
}
